package com.prs.crm.domain.archives;

import java.util.Set;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import com.prs.crm.domain.BaseEntity;

/**
 * 
 * @author YangHao
 *	2012-7-11 9:24:38 档案类目
 */
@Entity
@Table(name="ar_archivestype")
public class ArchivesType extends BaseEntity{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	private Integer id;
	/**档案编号*/
	private String number;
	/**详细说明*/
	private String remark;
	/**档案名称*/
	private String name;
	@ManyToOne
	private ArchivesType parent;
	@OneToMany(mappedBy="parent")
	private Set<ArchivesType> childs;
	
	@OneToMany(mappedBy="archivesType")
	private Set<ArchivesManager> archivesManager;
	public Set<ArchivesManager> getArchivesManager() {
		return archivesManager;
	}
	public void setArchivesManager(Set<ArchivesManager> archivesManager) {
		this.archivesManager = archivesManager;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getNumber() {
		return number;
	}
	public void setNumber(String number) {
		this.number = number;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public ArchivesType getParent() {
		return parent;
	}
	public void setParent(ArchivesType parent) {
		this.parent = parent;
	}
	public Set<ArchivesType> getChilds() {
		return childs;
	}
	public void setChilds(Set<ArchivesType> childs) {
		this.childs = childs;
	}
}
